import request from '@/utils/request.js'
import { useTokenStore } from '@/stores/token.js'

//提供调用分页查询接口的函数
export const articlePageQueryService = (params)=>{
    return request.get('/admin/article/page',{params: params});
}

//修改信息
export const articleInfoUpdateService = (userInfoData)=>{
    return request.put('/admin/article',userInfoData)
}

 //删除信息
export const articleDeleteService = (id)=>{
    return request.delete('/admin/article/' + id)
 }

  //获取信息
export const articleInfoGetService = (id)=>{
    return request.get('/admin/article/' + id)
}

  //新增信息
  export const articleRegisterService = (registerData)=>{
    return request.post('/admin/article/add', registerData)
}